//栈的基本操作
#ifndef BASED_OPERATION_H
#define BASED_OPERATION_H

#include <stdio.h>
#include <stdlib.h>

#define eleType  int

#define Status   int
#define OK        1
#define ERROR     0
#define OVERFLOW  -1

#define INITSIZE   256
typedef struct SeqStack{
    eleType *element;
    int size;
    int capacity;
}Stack;

Status InitStack(Stack &s);
Status DestroyStack(Stack &s);
Status ClearStack(Stack &s);
bool IsEmpty(Stack &s);
Status Pop(Stack &s,eleType &element);
Status Push(Stack &s,const eleType &element);

#endif